package com.jyw.system.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyw.system.domain.SysUserDept;

/**
 * 用户和部门关联Mapper接口
 * 
 * @author system
 * @date 2023-08-09
 */
public interface SysUserDeptMapper extends BaseMapper<SysUserDept>
{
    /**
     * 查询用户和部门关联
     * 
     * @param id 用户和部门关联主键
     * @return 用户和部门关联
     */
    public SysUserDept selectSysUserDeptById(Long id);

    /**
     * 查询用户和部门关联列表
     * 
     * @param sysUserDept 用户和部门关联
     * @return 用户和部门关联集合
     */
    public List<SysUserDept> selectSysUserDeptList(SysUserDept sysUserDept);

    /**
     * 新增用户和部门关联
     * 
     * @param sysUserDept 用户和部门关联
     * @return 结果
     */
    public int insertSysUserDept(SysUserDept sysUserDept);

    /**
     * 修改用户和部门关联
     * 
     * @param sysUserDept 用户和部门关联
     * @return 结果
     */
    public int updateSysUserDept(SysUserDept sysUserDept);

    /**
     * 删除用户和部门关联
     * 
     * @param id 用户和部门关联主键
     * @return 结果
     */
    public int deleteSysUserDeptById(Long id);

    /**
     * 批量删除用户和部门关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysUserDeptByIds(Long[] ids);
}
